package com.atguigu.order.service.client;

import com.atguigu.utils.vo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu")
public interface EduClient {
    //根据课程id获取用户信息
    @GetMapping("/eduservice/coursefront/getCourseWebVoInfo/{courseId}")
    public CourseWebVoOrder getCourseWebVoInfo(@PathVariable("courseId")String courseId);
}
